<table class="table table-responsive" id="integralLogs-table">
    <thead>
        <th>ID</th>
        <th>用户昵称</th>
        <th>类型</th>
        <th>增加类型</th>
        <th>下线名称</th>
        <th>名称</th>
        <th>分数</th>
        <th>剩余</th>
        <th>时间</th>
        {{--<th colspan="3">Action</th>--}}
    </thead>
    <tbody>
    @foreach($integralLogs as $integralLog)
        <tr>
            <td>{!! $integralLog->id !!}</td>
            <td>{!! $integralLog->user->nickname !!}</td>
            <td>{!! $integralLog->type==1?'增加':'减少' !!}</td>
            <td>{!! $integralLog->type==1?($integralLog->add_type==1?'下线':'充值'):'' !!}</td>
            <td>{!! isset($integralLog->junior)?$integralLog->junior->nickname:'' !!}</td>
            <td>{!! $integralLog->title !!}</td>
            <td>{!! $integralLog->amount !!}</td>
            <td>{!! $integralLog->calculate !!}</td>
            <td>{!! $integralLog->created_at !!}</td>
            {{--<td>--}}
                {{--{!! Form::open(['route' => ['integralLogs.destroy', $integralLog->id], 'method' => 'delete']) !!}--}}
                {{--<div class='btn-group'>--}}
                    {{--<a href="{!! route('integralLogs.show', [$integralLog->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>--}}
                    {{--<a href="{!! route('integralLogs.edit', [$integralLog->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>--}}
                    {{--{!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}--}}
                {{--</div>--}}
                {{--{!! Form::close() !!}--}}
            {{--</td>--}}
        </tr>
    @endforeach
    </tbody>
</table>